package com.atguigu.lease.web.app.service.impl;

import com.atguigu.lease.model.entity.CityInfo;
import com.atguigu.lease.model.entity.DistrictInfo;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.lease.model.entity.ProvinceInfo;
import com.atguigu.lease.web.app.service.ProvinceInfoService;
import com.atguigu.lease.web.app.mapper.ProvinceInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author liubo
 * @description 针对表【province_info】的数据库操作Service实现
 * @createDate 2023-07-26 11:12:39
 */
@Service
public class ProvinceInfoServiceImpl extends ServiceImpl<ProvinceInfoMapper, ProvinceInfo>
        implements ProvinceInfoService {
    @Autowired
    private ProvinceInfoMapper provinceInfoMapper;

    @Override
    public List<CityInfo> listCityInfoByProvinceId(Long id) {
        return provinceInfoMapper.listCityInfoByProvinceId(id);
    }

    @Override
    public List<DistrictInfo> listDistrictInfoByCityId(Long id) {
        return provinceInfoMapper.listDistrictInfoByCityId(id);
    }
}




